<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

</head>
<body>
    <!-- <script src=""></script> -->
    <script>
        let list =[1,2,2,3]
        let set = new Set(list)
        console.log([...new Set(list)].sort((a,b)=>b-a));
        
        

    </script>
</body>
</html>